package com.chengqs;

import com.chengqs.test_object.Dog;
import lombok.extern.slf4j.Slf4j;
import org.openjdk.jol.info.ClassLayout;

import java.util.Vector;

@Slf4j(topic = "c.Main")
public class Main {
    public static void main(String[] args) {
        Dog dog = new Dog();
        new Thread(() -> {
            synchronized (dog) {
                try {
                    dog.wait();
                } catch (InterruptedException e) {
                    throw new RuntimeException(e);
                }
                System.out.println(ClassLayout.parseInstance(dog));
            }
        }).start();
    }
}